inspector: Add comments
authorMatthias Clasen <mclasen@redhat.com>
Fri, 11 Jul 2014 14:27:00 +0000 (10:27 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 11 Jul 2014 14:27:00 +0000 (10:27 -0400)
The binding support pokes some not-quite-official (or entirely
private) implementation details. Add comment to warn about this.

gtk/inspector/prop-editor.c

index ee8b80ce0ef61701c9499bf19e3087f316ab274f..4614a9211ca350ea875fb6d140d5d76724c8ba3c 100644 (file)
@@ -1330,6 +1330,9 @@ add_binding_info (GtkInspectorPropEditor *editor)
   object = editor->priv->object;
   name = editor->priv->name;
 
+  /* Note: this is accessing private GBinding details, so keep it
+   * in sync with the implementation in GObject
+   */
   bindings = (GHashTable *)g_object_get_data (G_OBJECT (object), "g-binding");
   if (!bindings)
     return;
@@ -1407,6 +1410,10 @@ add_binding_info (GtkInspectorPropEditor *editor)
     }
 }
 
+/* Note: Slightly nasty that we have to poke at the
+ * GSettingsSchemaKey internals here. Keep this in
+ * sync with the implementation in GIO!
+ */
 struct _GSettingsSchemaKey
 {
   GSettingsSchema *schema;